package com.liusha.quicksand.service;

import com.liusha.quicksand.NotFoundException;
import com.liusha.quicksand.po.Comment;
import com.liusha.quicksand.po.User;
import com.liusha.quicksand.po.UserLogin;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: 一世长安一世欢
 * @Date: 2020/10/24
 * @Time: 1:53
 * @Description: No Description
 */
public interface UserService {

    public void save(User u) throws Exception;

    public Page<User> findAll(String kw, Pageable pageable);

    public User findById(Long userId);

    public void delete(User u);

    public void deleteById(Long userId);

    User saveUser(User user);

    public User checkUsers(UserLogin user);
}
